Ext.define('DragonApp.view.pub.combobox.Tag', {
    extend: 'Ext.form.field.ComboBox',
    xtype: 'tagcombobox',

    requires: [
        'DragonApp.store.JsonPConvertTag'
    ],
    store: {
        type: 'jsonPConvertTagStore',
        storeId: 'jsonPConvertTagStore'
    },

    valueField: 'tag',
    displayField: 'tag',

    tpl: Ext.create('Ext.XTemplate',
        '<ul class="x-list-plain"><tpl for=".">',
        '<li role="option" class="x-boundlist-item"><img src="{path}" width="60" alt="{filename}" />&nbsp;{tag}</li>',
        '</tpl></ul>'
    )

});